package cn.wolfcode.wolf2w.controller;

import cn.wolfcode.wolf2w.query.StrategyCommentQuery;
import cn.wolfcode.wolf2w.service.IStrategyCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("strategyCommend")
public class strategyCommendController {
    @Autowired
    private IStrategyCommentService strategyCommentService;

    @RequestMapping("/list")
    public String list(Model model, @ModelAttribute StrategyCommentQuery qo){
        model.addAttribute("pageInfo",strategyCommentService.query(qo));
        return "strategyCommend/list";
    }
}
